package com.hotel.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hotel.dao.mapper.HotelServiceInfoMapper;
import com.hotel.dao.mapper.ServiceTypeMapper;
import com.hotel.entity.HotelServiceInfo;
import com.hotel.entity.ServiceType;


@Service
public class ServiceService {

	@Autowired
	private HotelServiceInfoMapper hotelServiceMapper;
	

	@Autowired
	private ServiceTypeMapper serviceTypeMapper;
	
	public HotelServiceInfo getHotelServiceInfoById(int userId) {
		return this.hotelServiceMapper.selectByPrimaryKey(userId);  
	} 
	
	public ServiceType getServiceTypeById(int userId) {
		return this.serviceTypeMapper.selectByPrimaryKey(userId);  
	} 
	
}
